package by.yativem.ins.web.actions;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class DownloadAction extends AbstaractActonSupport{
	
	private InputStream fileStream;
	
	private final static String FILE_PATH ="/var/GRTMPVOL_RU_15.11.12.iso";
	
	public InputStream getFileStream() {
		return fileStream;
	}



	public DownloadAction(){
		super();
	}
	
	public String execute(){
		try {
			fileStream = new FileInputStream(new File(FILE_PATH));
		} catch (FileNotFoundException e) {			
			e.printStackTrace();
			return ERROR;
		}
		return SUCCESS;
	}

}
